package com.bosssoft.setp.model.system;

import com.bosssoft.setp.handler.SystemDataProxy;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.BoolType;
import xyz.erupt.annotation.sub_field.sub_edit.Search;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.Entity;

@Entity
@javax.persistence.Table(name = "setp_TABLE3")
@Erupt(name = "参数",dataProxy = SystemDataProxy.class)
public class System extends BaseModel {
    @EruptField(
            views = @View(title = "参数"),
            edit = @Edit(title = "参数", notNull = true)
    )
    private String name;
    @EruptField(
            views = @View(title = "状态"),
            edit = @Edit(title = "状态", notNull = true,boolType = @BoolType(trueText = "启用", falseText = "关闭"), search = @Search)
    )
    private Boolean number;
    @EruptField(
            views = @View(title = "数值"),
            edit = @Edit(title = "数值", notNull = false)
    )
    private String note;
    public String getNote()
    {
        return note;
    }
}
